package day0725;

import java.util.Arrays;

public class Test15 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        getEnd(arr);
    }

    static void getEnd(int[] arr){
        System.out.println(arr[arr.length-1]);//最后一个元素
        System.out.println(Arrays.toString(arr));
    }

}
